import { get, post } from '../http'

export const walletDeposit = (paylaod: any) => {
  return post('/finance/v1/wallet/manager/deposit', paylaod)
}
export const walletFind = (paylaod: any) => {
  return post('/finance/v1/wallet/manager/wallet/find', paylaod)
}

export const managerFindAccountItem = (paylaod: any) => {
  return post('/finance/v1/wallet/manager/account/item', paylaod)
}

export const managerTransfer = (paylaod: any) => {
  return post('/finance/v1/wallet/manager/transfer', paylaod)
}

export const managerFindWithdrawItem = (paylaod: any) => {
  return post('/finance/v1/wallet/manager/withdraw/items', paylaod)
}

export const managerWithdraw = (paylaod: any) => {
  return post('/finance/v1/wallet/manager/withdraw', paylaod)
}

export const managerFindAccount = (paylaod: any) => {
  return post('/finance/v1/wallet/manager/account', paylaod)
}

export const managerFindAccountV2 = (paylaod: any) => {
  return post('/finance/v1/wallet/manager/accountv2', paylaod)
}

export const myaccounts = (paylaod: any) => {
  return post('/finance/v1/wallet/accounts', paylaod)
}

// 获取钱包账户信息
export const findCompanyWallet = (paylaod: any) => {
  return get('/finance/v1/wallet/CompanyAccount/findCompanyWallet', paylaod)
}

// 任务获取钱包信息
export const findCompanyGroupWalletByUserId = (paylaod: any) => {
  return get('/finance/v1/wallet/CompanyAccount/findCompanyGroupWalletByUserId', paylaod)
}

// 分页查询账户流水
export const findWalletAccountItemPage = (paylaod: any) => {
  return get('/finance/v1/wallet/walletAccountItem/findWalletAccountItemPage', paylaod)
}
// 提交充值请求
export const submitDepositRequest = (paylaod: any) => {
  return post('/finance/v1/wallet/companyDepositRequest/submitDepositRequest', paylaod)
}
// 充值补充资料
export const addInformation = (paylaod: any) => {
  return post('/finance/v1/wallet/companyDepositRequest/addInformation', paylaod)
}
// 取消充值申请
export const cancelDepositRequest = (paylaod: any) => {
  return post('/finance/v1/wallet/companyDepositRequest/cancelDepositRequest', paylaod)
}
// 充值确认
export const confirmDepositRequest = (paylaod: any) => {
  return post('/finance/v1/wallet/companyDepositRequest/confirmDepositRequest', paylaod)
}
// 企业充值列表
export const findCompanyDepositRequestPage = (paylaod: any) => {
  return get('/finance/v1/wallet/companyDepositRequest/findCompanyDepositRequestPage', paylaod)
}
// 企业转账记录
export const findCompanyTransferRequestPage = (paylaod: any) => {
  return get('/finance/v1/wallet/companyTransferRequest/findCompanyTransferRequestPage', paylaod)
}
// 转账
export const completeTransferRequest = (paylaod: any) => {
  return post('/finance/v1/wallet/companyTransferRequest/completeTransferRequest', paylaod)
}

// 获取银行账户信息
export const getBlanKAccountByCompanyId = (paylaod?: any) => {
  return get('/finance/v1/finance/blankAccount/getBlanKAccountByCompanyId', paylaod)
}
// 编辑银行账户信息
export const saveOrUpdateBatchById = (paylaod?: any) => {
  return post('/finance/v1/finance/blankAccount/saveOrUpdateBatchById', paylaod)
}
// 企业账户提现申请
export const submitWithdrawRequest = (paylaod: any) => {
  return post('/finance/v1/wallet/companyWithdrawRequest/submitWithdrawRequest', paylaod)
}
//分页查询企业提现申请
export const findCompanyWithdrawRequestPage = (paylaod: any) => {
  return get('/finance/v1/wallet/companyWithdrawRequest/findCompanyWithdrawRequestPage', paylaod)
}
// 取消提现申请
export const cancelWithdrawRequest = (paylaod: any) => {
  return post('/finance/v1/wallet/companyWithdrawRequest/cancelWithdrawRequest', paylaod)
}
// 结算分组
export const listWalletAccountGroup = (paylaod?: any) => {
  return get('/finance/v1/wallet/CompanyAccount/listWalletAccountGroup', paylaod)
}
